<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>阻止修改属性</title>
		<script src="https://cdn.jsdelivr.net/npm/vue"></script>
	</head>
	<body>
		<div id="app">
			<p>
              {{foo}}				
			</p>
			<button v-on:click="foo='baz'">Change it</button>
		</div>
		<script>
			var obj = {
				foo : 'aa'
			}
			var vm = new Vue({
				el:'#app',
				data:obj
			})
		</script>
	</body>
</html>
